Fix: Add --active flag to uv sync command to fix virtual environment detection #2847
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fix for Issue #2846 - Virtual Environment Path Conflict
Description
This PR fixes issue #2846 where
crewai install
fails with an error about installingonnxruntime
despite it being already installed. The issue is caused by a conflict between theVIRTUAL_ENV
environment variable and the project path.Changes
--active
flag to theuv sync
command ininstall_crew.py
to target the active virtual environmentinstall_crew
function to verify the fixTesting
install_crew
functionVIRTUAL_ENV
doesn't match the project pathRelated Issue
Fixes #2846
Link to Devin run
https://app.devin.ai/sessions/bf12b2b6cafa40b4827c7569b994e55f
Requested by
Joe Moura ([email protected])